home *** CD-ROM | disk | FTP | other *** search
-
- /* Generated by Interface Builder */
-
- #import <appkit/View.h>
-
- #define MAXXSIZE 1024
- #define MAXYSIZE 768
- #define XSIZE NX_WIDTH(&bounds)
- #define YSIZE NX_HEIGHT(&bounds)
-
- #define UNRAVEL 4 // see code for lya:: method with unravelled loop
- // this is how many times we unravelled it.
-
- #define RGB 3 // 3 bytes - red, green, blue
-
- #define RED 0
- #define GREEN 1
- #define BLUE 2
-
- @interface LyapunovView:View
- {
- id pattern;
- id posMatrix;
- id sizeMatrix;
- id windowSizeMatrix;
- id scaleMatrix;
- id depthMatrix;
- id boundsMatrix;
- id polarityMatrix;
- id reApplyButton;
- id saveMenuButton;
- id activeMapView;
- id activeMap;
-
- int space[MAXXSIZE][MAXYSIZE];
- unsigned char pixels[MAXXSIZE*MAXYSIZE*RGB];
- float xPos, yPos, xScale, yScale, initial, minExp;
- int dwell, settle, patternLength, *patternNum;
- const char *patternString;
- char *appPath;
- BOOL positive, firstInit;
- }
-
- - initFrame:(const NXRect *)frm; // designated initializer
- - appDidInit:sender; // app delegate method
- - (int)lya:(double)a :(double)b; // find a single lyap. exponent
- - go:sender; // compute image
- - reApply:sender; // re-compute color map
- - newParam:sender; // new image params
- - saveAsTIFF:sender; // save image in a .tiff file
- - (BOOL)saveTIFF:(const char *)name; // actually do write; YES on success
- - drawSelf:(NXRect *)rects :(int)rectCount; // internal method
- - mouseDown:(NXEvent *)e; // to easily get new coords
-
- - windowWillResize:sender toSize:(NXSize *)frameSize; // watch our window
- - windowDidResize:sender; // watch our window
-
- @end
-